stylecontext: Remove unused private functions
authorBenjamin Otte <otte@redhat.com>
Fri, 30 Nov 2012 21:41:22 +0000 (22:41 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 30 Nov 2012 21:41:22 +0000 (22:41 +0100)
gtk/gtkstylecontext.c
gtk/gtkstylecontextprivate.h
gtk/gtkthemingengine.c
gtk/gtkthemingengineprivate.h

index d8245b971ef2c38044257c440e0e7885fdff25c2..5b17b2159c159906f5145f76c73a06b12d157bd6 100644 (file)
@@ -2222,17 +2222,6 @@ _gtk_style_context_peek_property (GtkStyleContext *context,
   return _gtk_css_computed_values_get_value (data->store, property_id);
 }
 
-double
-_gtk_style_context_get_number (GtkStyleContext *context,
-                               guint            property_id,
-                               double           one_hundred_percent)
-{
-  GtkCssValue *value;
-  
-  value = _gtk_style_context_peek_property (context, property_id);
-  return _gtk_css_number_value_get (value, one_hundred_percent);
-}
-
 const GValue *
 _gtk_style_context_peek_style_property (GtkStyleContext *context,
                                         GType            widget_type,
index 14d44c4495360169257651a5e27f23a7e6de4bb6..0db71e99355849b35d710d32eb9e1f05dc92ba92 100644 (file)
@@ -32,9 +32,6 @@ const GtkBitmask *
 
 GtkCssValue   * _gtk_style_context_peek_property             (GtkStyleContext *context,
                                                               guint            property_id);
-double         _gtk_style_context_get_number                 (GtkStyleContext *context,
-                                                              guint            property_id,
-                                                              double           one_hundred_percent);
 const GValue * _gtk_style_context_peek_style_property        (GtkStyleContext *context,
                                                               GType            widget_type,
                                                               GtkStateFlags    state,
index 2d9152c6a9ff54aa5024e07111a3898eaaaf62fb..409e34d1f0b1be6a6c6f90a0ecf5b4f081df7b7b 100644 (file)
@@ -355,16 +355,6 @@ _gtk_theming_engine_peek_property (GtkThemingEngine *engine,
   return _gtk_style_context_peek_property (engine->priv->context, property_id);
 }
 
-double
-_gtk_theming_engine_get_number (GtkThemingEngine *engine,
-                                guint             property_id,
-                                double            one_hundred_percent)
-{
-  g_return_val_if_fail (GTK_IS_THEMING_ENGINE (engine), 0.0);
-
-  return _gtk_style_context_get_number (engine->priv->context, property_id, one_hundred_percent);
-}
-
 /**
  * gtk_theming_engine_get_property:
  * @engine: a #GtkThemingEngine
index 91c52e7c424d7aacf128fd19e2a0315f8a6a381a..53262e152a533e2e9357eac1d9afed7b0b484655 100644 (file)
@@ -29,9 +29,6 @@ void _gtk_theming_engine_paint_spinner (cairo_t       *cr,
 
 GtkCssValue  *_gtk_theming_engine_peek_property (GtkThemingEngine *engine,
                                                  guint             property_id);
-double        _gtk_theming_engine_get_number    (GtkThemingEngine *engine,
-                                                 guint             property_id,
-                                                 double            one_hundred_percent);
 void          _gtk_theming_engine_set_context   (GtkThemingEngine *engine,
                                                  GtkStyleContext  *context);
 GtkStyleContext *_gtk_theming_engine_get_context   (GtkThemingEngine *engine);